import {HTTP} from '../utils/http'

class voteModel extends HTTP{
  //投票人列表
    list(size,current,cond){
      return this.request({
        url:'/vote/list',
        data:{
          size:20,
          current:1,
        }
      })
    }
  //详情
  detail(voteId){
    return this.request({
      url:'/vote/detail',
      data:{
        voteId:voteId,
      }
    })
  }
  //投票
  vote(voteId){
    return this.request({
      url:'/vote/vote',
      data:{
        voteId:voteId,
      }
    })
  }
  //最新投票人
  newestVote(size,current,cond){
    return this.request({
      url:'/vote/newestVote',
      data:{
        size:size,
        current:current,
        cond:cond
      }
    })
  }
  //姐姐力荐
  recommend(size,current,cond){
    return this.request({
      url:'/vote/sister/recommend',
      data:{
        size:4,
        current:1,
        cond:cond,
      }
    })
  }
  //轮播图
  appTitbits(size,current,cond){
    return this.request({
      url:'/appTitbits/list',
      data:{
        size:2,
        current:1,
        cond:cond,
      }
    })
  }
  //更多
  listAll(entityId){
    return this.request({
      url:'/appTitbits/listAll',
      data:{
        entityId,entityId
      }
    })
  }
}
export {voteModel}